/**
 * 
 */
package com.easidea.tim.entity.finance;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springside.core.dao.extend.Undeletable;

import com.easidea.tim.entity.BaseEntity;

/**
 * 账龄报表数据
 * @author Harrison
 *
 */
@Entity(name="tim_finance_acount_age_report")
@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@Cache(region="tim_finance_acount_age_report", usage=CacheConcurrencyStrategy.READ_WRITE)
@Undeletable(status="deleted")
public class AccountAgeReport extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2084634914895935924L;
	
	private String custName; //客户名
	private String staffName; //销售人员
	private Double amount30; //30天应付款
	private Double amount60; //60天应付款
	private Double amount90; //90天应付款
	private Double amount90Plus; //90天以上应付款
	private String memo; //备注
	private Double custAmountSum;  //客户应付款余额
	private Long custId; // 客户ID
	
	/**
	 * @return the custName
	 */
	@Column(name="cust_name", nullable=false)
	public String getCustName() {
		return custName;
	}
	/**
	 * @param custName the custName to set
	 */
	public void setCustName(String custName) {
		this.custName = custName;
	}
	/**
	 * @return the staffName
	 */
	@Column(name="staff_name", nullable=false)
	public String getStaffName() {
		return staffName;
	}
	/**
	 * @param staffName the staffName to set
	 */
	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
	/**
	 * @return the amount30
	 */
	@Column(name="30_amount", columnDefinition="decimal(18,3) not null")
	public Double getAmount30() {
		return amount30;
	}
	/**
	 * @param amount30 the amount30 to set
	 */
	public void setAmount30(Double amount30) {
		this.amount30 = amount30;
	}
	/**
	 * @return the amount60
	 */
	@Column(name="60_amount", columnDefinition="decimal(18,3) not null")
	public Double getAmount60() {
		return amount60;
	}
	/**
	 * @param amount60 the amount60 to set
	 */
	public void setAmount60(Double amount60) {
		this.amount60 = amount60;
	}
	/**
	 * @return the amount90
	 */
	@Column(name="90_amount", columnDefinition="decimal(18,3) not null")
	public Double getAmount90() {
		return amount90;
	}
	/**
	 * @param amount90 the amount90 to set
	 */
	public void setAmount90(Double amount90) {
		this.amount90 = amount90;
	}
	/**
	 * @return the amount90Plus
	 */
	@Column(name="other_amount", columnDefinition="decimal(18,3) not null")
	public Double getAmount90Plus() {
		return amount90Plus;
	}
	/**
	 * @param amount90Plus the amount90Plus to set
	 */
	public void setAmount90Plus(Double amount90Plus) {
		this.amount90Plus = amount90Plus;
	}
	/**
	 * @return the memo
	 */
	@Column(name="memo", columnDefinition="text")
	public String getMemo() {
		return memo;
	}
	/**
	 * @param memo the memo to set
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}
	/**
	 * @return the custAmountSum
	 */
	@Column(name="cust_amount_sum", columnDefinition="decimal(18,3) not null")
	public Double getCustAmountSum() {
		return custAmountSum;
	}
	/**
	 * @param custAmountSum the custAmountSum to set
	 */
	public void setCustAmountSum(Double custAmountSum) {
		this.custAmountSum = custAmountSum;
	}
	/**
	 * @return the custId
	 */
	@Column(name="cust_id")
	public Long getCustId() {
		return custId;
	}
	/**
	 * @param custId the custId to set
	 */
	public void setCustId(Long custId) {
		this.custId = custId;
	}

}
